﻿<Window x:Class="ResPackClient.DeleteRow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{StaticResource STR_MENU_DATA_DELETE}" 
        Style="{StaticResource STYLE_TOOLBOX}"
        WindowStartupLocation="CenterOwner"        
        Height="180" Width="220">
    
    <Grid>        
        <StackPanel>
            <TextBlock Name="_tbDelete" Text="{StaticResource STR_SELECTION}"></TextBlock>
            <ComboBox Name="_cbDelete" ItemsSource="{Binding Path=Rows}"></ComboBox>
            <StackPanel Style="{StaticResource STYLE_DLG_BT}">
                <Button Content="{StaticResource STR_BT_DELETE}" IsDefault="True" Click="OnOk" 
                        IsEnabled="{Binding ElementName=_cbDelete,Path=SelectedIndex,Converter={StaticResource CONVERTER_INDEX_TO_BOOL}}"></Button>
                <Button Content="{StaticResource STR_BT_CANCEL}" IsCancel="True"></Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
